/*
 * @Author: Bennent_G
 * @Date: 2025-01-14 17:00:13
 * @LastEditTime: 2025-01-14 17:39:01
 * @Description:
 */
import http from "@/utils/http";
import type { ApiResponse } from '@/apis/type';

export const fetchDeptTree = <T>(params: any):Promise<ApiResponse<T>> => {
	return http({
		url: "/api/dept",
		method: "GET",
		data: params
	});
};

export const fetchDictionary = <T>(params: any):Promise<ApiResponse<T>> => {
	return http({
		url: "/api/dictionary",
		method: "GET",
		data: params
	});
};
